#ifndef _COVERART_H
#define _COVERART_H
#ifdef COVERART

class Coverart;
class CoverartFormat
    {
  public:
    virtual bool start(Coverart *ca) = 0;
    virtual bool finish(Coverart *ca) = 0;
    };

class Coverart
{
  public:
    Coverart(unsigned char *data, int length);
    ~Coverart();

    void allocData();
    bool start();
    bool finish();

    unsigned char *source_data;
    int            source_length;
    int            width,
                   stride,
                   height;
    unsigned char *data;

//  protected:
    class CoverartFormat *format;
};

#endif  // COVERART
#endif  // _COVERART_H
